﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media;

namespace TruyenCuoi
{
    public partial class AboutPage : PhoneApplicationPage
    {
        public AboutPage()
        {
            InitializeComponent();
            var isLightTheme = (Visibility)Application.Current.Resources["PhoneLightThemeVisibility"];
            var imageBrush = new ImageBrush();
            var imageUri = new Uri(isLightTheme == Visibility.Visible ? "/Assets/480x800.jpg" : "/Assets/BackGroundPage.png", UriKind.Relative);
            imageBrush.ImageSource = new System.Windows.Media.Imaging.BitmapImage(imageUri);
            LayoutRoot.Background = imageBrush;
        }
    }
}